package com.yp.lession52.aop;

import org.springframework.aop.AfterReturningAdvice;

import java.lang.reflect.Method;
import java.util.Arrays;

public class MyAfterAdvice implements AfterReturningAdvice {
    @Override
    public void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable {
        System.out.println("后置增强");

        System.out.println("增强方法名称"+method.getName());
        System.out.println("增强方法参数列表"+returnValue);
    }
}
